def func(arr):
    for j in range(0, len(arr)):
        for i in range(1, len(arr) - j):
            if arr[i] < arr[i - 1]:
                arr[i - 1], arr[i] = arr[i], arr[i - 1]


if __name__ == '__main__':
    arr = [5, 2, 8, 7, 9, 1, 6, 4, 3, 0]
    func(arr)
    print(arr)
